import { startTransition } from 'react';
import { useNavigate } from 'react-router-dom';
function Home() {
  const navigate = useNavigate()
  const toVue = () => {
	  startTransition(() => {
	    navigate('/vue');
	    // 其他可能导致组件暂停的更新操作
	  });
  }
  return (
    <div className="App">
      <header className="App-header">
        <p>
          Edit <code>src/Home.js</code>
        </p>
        <button onClick={toVue}>Vue App</button>
      </header>
    </div>
  );
}

export default Home;
